import request from '@/utils/request'

export const getAllBooks = (data: any) =>
    request({
        url: '/admin/getAllbook',
        method: 'get',
        data
    })


export const takeOrder = (id: number) =>
     request({ 
        url: `/admin/takeOrder/${id}`,
        method: 'post',
    })

